package com.example.my_project.auto_v2.mapper;

import com.example.my_project.auto_v2.pojo.ParamEntity;
import com.example.my_project.utils.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ParamEntityMapper extends MyMapper<ParamEntity> {

    @Select("SELECT * FROM auto.param_entity WHERE path_id=${path_id}")
    List<ParamEntity> findByPathId(@Param("path_id")Integer path_id);

    ParamEntity findByNameAndPathId(ParamEntity entity);
}